oxenstored: handling of domain conflict-credit
authorThomas Sanders <thomas.sanders@citrix.com>
Tue, 14 Mar 2017 12:15:52 +0000 (12:15 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:10:42 +0000 (15:10 +0100)
commit6636c70b369ada87f08bcb1810d0715687bc1fe8
treee584cda6450756923a7d9524b502f7b7c4dc8943
parentf2c7ab1f47ea58b7bd397c42185e93ed1f162ac5
oxenstored: handling of domain conflict-credit

This commit gives each domain a conflict-credit variable, which will
later be used for limiting how often a domain can cause other domain's
transaction-commits to fail.

This commit also provides functions and data for manipulating domains
and their conflict-credit, and checking whether they have credit.

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Jonathan Davies <jonathan.davies@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/connection.ml
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/domain.ml
tools/ocaml/xenstored/domains.ml
tools/ocaml/xenstored/oxenstored.conf.in
tools/ocaml/xenstored/transaction.ml
tools/ocaml/xenstored/xenstored.ml